import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    { path: '/', component: () => import('@/pages/Home') },
    { path: '/home', component: () => import('@/pages/Home') },
    { path: '/fatherAndChild', name: 'FatherAndChild', component: () => import('@/pages/FatherAndChild') },
    { path: '/dataBindView', name: 'DataBindView', component: () => import('@/pages/DataBindView') },
    { path: '/css', name: 'Css', component: () => import('@/pages/Css') },
    { path: '/watcher', name: 'Watcher', component: () => import('@/pages/Watcher') },
    { path: '/import', name: 'Import', component: () => import('@/pages/Import') },
    { path: '/totop', name: 'ToTop', component: () => import('@/pages/ToTop') },
    { path: '/filter', name: 'Filter', component: () => import('@/pages/Filter') },
    { path: '/testarr', name: 'TestArr', component: () => import('@/pages/TestArr') },
    { path: '/slot', name: 'Slot', component: () => import('@/pages/Slot') }
  ]
})
